package aop01;

/**
 * Author:shixiaojun@itany.com
 * Date:2022/3/8 9:08
 * Version:1.0-SNAPSHOT
 */
public class UserServiceProxy implements UserService {

    private UserService userService = new UserServiceImpl();

    @Override
    public void login() {
        System.out.println("交叉业务逻辑");
        userService.login();
    }

    @Override
    public void register() {
        System.out.println("交叉业务逻辑");
        userService.register();
    }
}
